# -*- coding: utf-8 -*-
class A(object):
    def __init__(self):
        self.__num = 1


    def info_print(self):
        print('A+' + str(self.get_num()))
        print('A+' + str(self.__num))
        self.set_num()
        print('A+' + str(self.num))

    def get_num(self):
        return self.__num

    def set_num(self):
        self.__num=2

class B(A):
    def __init__(self):
        self.num = 3

    def make_B(self):
        # self.__init__()
        print('B'+str(self.num))

    def  make_A(self):
        A.__init__(self)
        A.info_print(self)



res =B()
print('-------------')
res.make_AC()
# res.make_B()
# res.make_C()

# res.num=10
# print('-------------')
# res.make_B()
# print('-------------')
# res.make_A()
# res.make_B()
# res.make_C()